﻿using System.Globalization;
using System.Threading;

namespace Globsite.Globalization.Mvc
{
    public static class Utils
    {
        #region Culture

        public static CultureInfo CurrentCulture
        {
            get { return Thread.CurrentThread.CurrentCulture; }
            set { Thread.CurrentThread.CurrentCulture = value; }
        }

        public static CultureInfo CurrentUICulture
        {
            get { return Thread.CurrentThread.CurrentUICulture; }
            set { Thread.CurrentThread.CurrentUICulture = value; }
        }
        public static CultureInfo DefaultThreadCurrentCulture
        {
            get { return CultureInfo.DefaultThreadCurrentCulture; }
            set { CultureInfo.DefaultThreadCurrentCulture = value; }
        }

        public static CultureInfo DefaultThreadCurrentUICulture
        {
            get { return CultureInfo.DefaultThreadCurrentUICulture; }
            set { CultureInfo.DefaultThreadCurrentUICulture = value; }
        }

        #endregion
    }
}
